package com.dhy.service.imp;

import com.dhy.mapper.EmployeeMapper;
import com.dhy.pojo.Employee;
import com.dhy.pojo.Permission;
import com.dhy.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;

    //查询员工及其所属部门信息
    @Override
    public Employee selectByWithDepartment(Long id) {
        return employeeMapper.selectByWithDepartment(id);
    }

    //查询某个部门的所有员工信息
    @Override
    public List<Employee> selectByDepartmentId(Long employeeId) {
        return null;

    }


}
